約 5,295,159 件
https://w.atwiki.jp/mywiki2010/pages/14.html
USBブート可能なx86マシンでAndroidを動作させる。 参考サイト一覧 「Android」をx86パソコンで動かそう ITpro 話題の携帯向けOS「Android」をx86パソコンで動かしてみよう (2009/02/27) ブログなど NWLab.com USB起動可能なAndoroid OSでPCからAndroidを起動してみました(2009/04/13) 即席USBブート環境構築(Windows編) ダウンロード可能なイメージファイルでお手軽にAndroidを動作させる。 (更新 2010/02/09) (1) 必要なものを用意 WindowsがインストールされたPC USBブート可能なPC(WindowsPCと同じでも良い) USBメモリ1GBもあれば十分。 FAT32でフォーマットしておく。 不慮の事故でデータが消えても困らないよう、大事なデータは事前にバックアップ。 (2) Androidのブート・イメージ入手 「USBブート・イメージ入手先」からファイルをダウンロードする。 (3) ブート・イメージの書き込み 書き込みソフトを使ってブート・イメージをUSBメモリに書き込む。 ソフト一覧 DDforWindowsWindowsXP, WindowsVistaで使用可。他Windowsでは未検証。 本ソフトでUSBから読み込んだディスクイメージはLinuxのddコマンドでそのまま使用可能。 (4) Android起動 Andoridを動かすPCでUSBブート可能になるようBIOSを設定するEeePC1000HEでは、PC起動時にESCキーを連打することでブート・ドライブを選択可能。 電源の入っていないPCのUSBポートにUSBメモリを差し込む 電源を入れるとAndroidが立ち上がる起動中にもUSBアクセスを行っているので、USBメモリは抜かないよう注意。 設定を変更した場合(表示言語など)は変更内容がUSBメモリに書き込まれ、次回起動時にも反映される。
https://w.atwiki.jp/android/pages/43.html
チュートリアル:ノートパッドエクササイズ1 本エクササイズではシンプルなノートリストを作ります。このノートリストを使ってユーザは新規ノートを追加することができますが、ノートの編集を行うことはできません。本エクササイズでは以下の事項をデモンストレートします。 ListActivities の基本、メニューオプションの作成・操作の基本 SQLite データベース内のノートへのアクセス/保存方法 ArrayAdapter (ListView にバインドするためのもっともシンプルな方法の一つ)を用いてデータを ListView にバインドする方法 リストビューの配置の仕方やアクティビティメニューへのアイテムの追加のやり方、アクティビティがアクティビティメニューアイテムをどのように扱うか、といったスクリーンレイアウトの基本 [エクササイズ1] [エクササイズ2?] [エクササイズ3?] [追加事項?] Step 1 Notepadv1 プロジェクトを開きます。 Notepadv1 は開始点として提供されるプロジェクトです - it takes care of some of the boilerplate work that you have already seen if you followed the Hello Android tutorial (すでにHello Android(もしもしアンドロイド)のチュートリアルで見ているかもしれませんが、共通する説明があります。) 2. browse ボタンを押し、あなたが本エクササイズをコピーしたフォルダを選択し、その中からNotepadv1を選んでOKを押してください。 a. Package Explorer で右クリックし、New- Project... を選択してください。 b. Android/Android Project を選択し、Next を押してください。 c. New Android Project のダイアログで、Create project from existing source(既存のソースからプロジェクトを作成)を選択してください. d. browse ボタンを押し、あなたが本エクササイズをコピーしたフォルダを選択し、その中からNotepadv1を選んでOKを押してください。 e. Project name 欄に Notepadv1、Location 欄に選択したパスが表示されることを確認してください。 f. Finish を押します。 g. 本エクササイズのプロジェクトが Eclipse の Package Explorer に開かれ準備が完了します。 h. もし AndroidManifest.xml にエラー表示が出ていたり、Android の zipファイルに関連する問題が表示された場合は、プロジェクトの上で右クリックし、ポップアップから、Android Tools- Fix Project Properties を選択してください。(プロジェクトがライブラリの場所を正しく見ていないので、この操作でそれを修復します。) Step 2 データへのアクセスと更新について このエクササイズにおいては、単にSQLiteデータベースを直接使ってデータを保存しますが、実際のアプリケーションでは正当なContentProviderを作成し、処理をカプセル化する方がずっと良いでしょう。 もし興味があれば、content provider やデータの保存/検索/表示などに関する情報をいろいろと見つけることが出来るでしょう。 DBHelper クラスを見てみてください - このクラスは、我々が作成するノートのデータを保持するとともにその更新も可能にする、SQLiteへのデータアクセスをカプセル化するために提供されています。 典型的にはContentProviderを用いることでこのクラスを実装します。そして実際、SDKには行っている完全なNotepadアプリケーションはそのようなContentProviderを実装しています。しかし、我々がこれからするように、単にSQLiteデータベースを直接利用していけない理由はありません。このクラスについて注意すべき重要なことは、それがSQLiteデータベースのデータの保存、参照、更新の詳細の面倒をみてくれるということです。全ての行を取得するメソッド、行IDに基づいて行を取得するメソッド、新しい行を作成するメソッド、既存の行を削除するメソッド、既存の行を更新するメソッドがあります。もしあなた自身のアプリケーションでSQLiteデータベースを利用する方法に関する入門を希望なら、このクラスを見てみるか、より良くは、ContentProviderの利用例として SDK の samples/ ディレクトリに入っている完全なNotepadアプリケーションを見てみてください。 Step 3 Layout と activity とについて ほとんどのActivityはそれに関連付けられたレイアウトを持っています。レイアウトはユーザに対してそのactivityの「顔」となります。今回の例では我々のレイアウトは画面全体を覆いノートの一覧を提供します。 しかし、フルスクリーンレイアウトはActivityにとっての唯一の選択肢ではありません。フローティングレイアウト(たとえばダイアログとか警告のように)が欲しいこともあるでしょうし、レイアウトを全く必要としないこともあるでしょう(使用するレイアウトを決めない場合、activityはユーザに見えなくなります)。 Open the notepad_list.xml file in res/layout and take a look at it This is a layout definition file with a default starting point in it, we have provided this as a convenience to get you going quickly. 1. All Android layout files must start with the XML header line ?xml version="1.0" encoding="utf-8"? . 2. Also, the next definition will often (but not always) be a layout definition of some kind, in this case a LinearLayout. 3. Note also that the xml namespace of Android should always be defined in the top level component or layout in the XML so that android tags can be used through the rest of the file xmlns android="http //schemas.android.com/apk/res/android" Step 4 We need to create the layout to hold our list. Add code inside of the LinearLayout tag so the whole file looks like this (you may have to hit the Source tab in order to edit the XML file) ?xml version="1.0" encoding="utf-8"? LinearLayout xmlns android="http //schemas.android.com/apk/res/android" android layout_width="wrap_content" android layout_height="wrap_content" ListView id="@id/android list" android layout_width="wrap_content" android layout_height="wrap_content"/ TextView id="@id/android empty" android layout_width="wrap_content" android layout_height="wrap_content" android text="@string/no_notes"/ /LinearLayout 1. The ListView and TextView can be thought as two alternative views, only one of which will be displayed at once. ListView will be used when there are notes to be shown, while the TextView (which has a default value of "No Notes Yet!" defined as a string resource, will be displayed if there aren t any notes to display). 2. The @ in the id strings of the ListView and TextView means that the XML parser should parse and expand the rest of the id string and use an ID resource. 3. And, the android list and android empty are IDs that are already provided for us by the Android platform, empty is used automatically when no data is provided in the list adapter. The List Adapter knows to look for these names specifically by default. Alternatively you could also choose to change the default empty view used by the List Adapter by using the setEmptyView(). More broadly, the android.R class is a set of predefined resources provided for you by the platform, while your project s R class is the set of resources your project has defined. Resources found in the android.R resource class can be used in the XML files by using the android name space prefix (as we see here). Step 5 Resources and the R class The folders under res/ in the Eclipse project are special. There is a specific structure to the folders and files under this folder. In particular, resources defined in these folders and files will have corresponding entries in the R class allowing them to be easily accessed and used from your application. Furthermore, they will be bundled and deployed as part of the application. To make a list view, we also need to define a view for each row in the list 1. Create a new file under res/layout called notes_row.xml. 2. Add the following contents (note again the xml header is used, and the first node defines the Android xml namespace) ?xml version="1.0" encoding="utf-8"? TextView id="@+id/text1" xmlns android="http //schemas.android.com/apk/res/android" android layout_width="wrap_content" android layout_height="wrap_content"/ 3. This is the view that will be used for each notes title row — it has only one text field in it. 4. In this case we create a new id called text1. The + after the @ in the id string indicates that the id should be automatically created if it does not already exist, so we are defining text1 on the fly and then using it. 5. After saving this file, open the R.java class in the project and look at it, you should see new definitions for notes_row and text1 (our new definitions) meaning we can now gain access to these from the our code. Step 6 Next, open the Notepadv1 class in the source. We are going to alter this class to become a list adapter and display our notes, and also allow us to add new notes Notepadv1 will be a subclass of Activity called a ListActivity, which has extra functionality to accommodate the kinds of things you might want to do with a list, for example displaying an arbitrary number of list items in rows on the screen, moving through the list items, and allowing them to be selected. Take a look through the existing code in Notepadv1 class. There are some constant definitions at the top, followed by a private field we will use to create numbered note titles, and some overrides of methods from the superclass. Step 7 Change the inheritance of Notepadv1 from Activity to ListActivity public class Notepadv1 extends ListActivity Note you will have to import ListActivity into the Notepadv1 class using Eclipse, ctrl-shift-O on Windows or Linux, or cmd-shift-O on the Mac (organize imports) will do this for you. Step 8 There are already three override methods defined onCreate, onCreateOptionsMenu and onOptionsItemSelected, we need to fill these out * onCreate() is called when the activity is started — it is a little like the "main" method for the activity. We use this to set up resources and state for the activity when it is running * onCreateOptionsMenu() is used to populate the menu for the activity. This is shown when the user hits the menu button, and has a list of options they can select (like "Create Note") * onOptionsItemSelected() is the other half of the menu equation, it is used to handle events generated from the menu (e.g. when the user selects the "Create Note" item). Step 9 Fill out the body of the onCreate() method. Here we will set the title for the activity (shown at the top of the screen), use the notepad_list layout we have created for the activity display contents, set up the DBHelper instance we will use to access notes data, then populate the list with the available note titles 1. call super() with the icicle parameter passed into our method 2. setContentView to R.layout.notepad_list 3. Create a new private class field called dbHelper of class DBHelper (before the onCreate method) 4. Back in the onCreate method, construct a DBHelper instance — assign to the dbHelper field (note, you must pass this into the constructor for DBHelper) 5. Finally, call a new method -fillData()- gets the data and populates it using the helper, we haven t defined it yet 6. onCreate() should now look like this @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.notepad_list); dbHelper = new DBHelper(this); fillData(); } And remember to add the DBHelper field definition (right under the noteNumber definition) private DBHelper dbHelper; Step 10 More on menus The notepad application we are constructing only scratches the surface with menus. You can also add shortcut keys for menu items, create submenus and even add menu items to other applications!. Fill out the body of the onCreateOptionsMenu() method. We are going to add just one menu item for now, "Add Item", using a string we will create in strings.xml, and defined with a constant we will create at the top of the class to identify the Add Item operation. 1. In strings.xml resource (under res/values), add a new string for menu_insert with text "Add Item" string name="menu_insert" Add Item /string , then save the file 2. Also, you need a menu position constant at the top of the Notepadv1 class (right under the KEY_BODY definition) public static final int INSERT_ID = Menu.FIRST; 3. In the onCreateOptionsMenu() method, add the menu item. Also take care of the result of the super call being returned. The whole method should now look like this @Override public boolean onCreateOptionsMenu(Menu menu) { boolean result = super.onCreateOptionsMenu(menu); menu.add(0, INSERT_ID, R.string.menu_insert); return result; } Step 11 Fill out the body of the onOptionsItemSelected() method This is going to handle our new "Add Note" menu item. When this is selected the onOptionsItemSelected() method will be called with the item.getId() set to INSERT_ID (the constant we used to identify the menu item). We can detect this, and take the appropriate actions 1. The super.onOptionsItemSelected(item) method call goes at the end of this method — we want to catch our events first! 2. Switch statement on item.getId() 3. case INSERT_ID 4. calls new method createNote() 5. break at the end of the case 6. return the result of the superclass onOptionsItemSelected() method at the end 7. The whole onOptionsItemSelect() method should now look like this @Override public boolean onOptionsItemSelected(Item item) { switch (item.getId()) { case INSERT_ID createNote(); break; } return super.onOptionsItemSelected(item); } Step 12 Add a new createNote() method In this first version of our application, createNote() is not going to be very useful. We will simply create a new note with a title assigned to it based on a counter ("Note 1", "Note 2"...) and with an empty body. At present we have no way of editing the contents of a note, so for now we will have to be content making one with some default values 1. String noteName = "Note " + noteNumber++; (Construct the name using "Note" and the counter we have defined in the class) 2. Call dbHelper.createRow() using noteName as the title and "" for the body 3. Call fillData() method again after adding (inefficient but simple) 4. The whole createNote() method should look like this private void createNote() { String noteName = "Note " + noteNumber++; dbHelper.createRow(noteName, ""); fillData(); } Step 13 List adapters Our example uses a very simple array adapter which binds an array or list of items into a ListView. More commonly in Android, List Adapters go hand in hand with ContentProviders, and this is also a very easy way to use lists. To bind a ContentProvider to a ListView you can use a android.widget.SimpleCursorAdapter to bind data from a ContentProvider into a ListView Define the fillData() method. This is fairly long This method uses ArrayAdapter, which is the simplest way of putting data into a ListView. ArrayAdapter takes either a List or an array of Strings, and binds them into a text view provided in the layout defined for the list row (this is the text1 field in our notes_row.xml layout). The method simply obtains a list of notes from the database helper, constructs a List of Strings using the title strings from each row, and then creates an ArrayAdapter out of those items and bound to use the notes_row we defined. private void fillData() { // We need a list of strings for the list items List String items = new ArrayList String (); // Get all of the rows from the database and create the item list List Row rows = dbHelper.fetchAllRows(); for (Row row rows) { items.add(row.title); } // Now create an array adapter and set it to display using our row ArrayAdapter String notes = new ArrayAdapter String (this, R.layout.notes_row, items); setListAdapter(notes); } 1. ArrayAdapter needs a List of Strings (List String ) containing the items to display 2. The data is read out of the database as rows, and the title field from each row is used to populate the list of strings 3. We specify the notes_row view we created as the receptacle for the data 4. If you get compiler errors about classes not being found, ctrl-shift-O or (cmd-shift-O on the mac) to organize imports. Note that for this exercise we use an ArrayAdapter, this is not a very scalable solution and more typically a SimpleCursorAdapter would be used with a ContentProvider or at least a Cursor returned from a query. See the sidebar on List Adapters for more information. Step 14 Run it! 1. Right click on the Notepadv1 project 2. From the popup menu, select Run As - Android Application 3. If you see a dialog come up, select Android Launcher as the way of running the application (you can also use the link near the top of the dialog to set this as your default for the workspace, this is recommended as it will stop the plugin from asking you this every time) 4. Add new notes by hitting the menu button and selecting Add Item from the menu Solution and Next Steps You can see the solution to this class in Notepadv1Solution from the zip file to compare with your own. Once you are ready, move on to Tutorial Exercise 2 to add the ability to create, edit and delete notes. Back to the Tutorial main page...
https://w.atwiki.jp/anddoid/pages/63.html
activity 関連タグ 使用例 activity android name=".StartActivity" android label="@string/app_name" intent-filter action / category / /intent-filter /activity activity android name=".MainActivity" /activity
https://w.atwiki.jp/tako2lab/pages/18.html
Android Android関連の覚書とか。 基本的にEclipseを使って開発するようだけど、使わないでする方法もあるようなので、その線でやってみる。 #HaiPad を購入したので、ぼちぼち現状に合わせて書き直してみる [2010-10-25] Android SDK のインストール http //code.google.com/android/download.htmlからSDKをダウンロード バージョン r07 を使用 バージョン m3-rc22a を使用 Android 1.6 から SDK のインストール方法が変わったとか インストール方法 ⇒ http //developer.android.com/sdk/installing.html 適当なディレクトリに展開 展開したディレクトリを$SDK_ROOTとしたとき、$SDK_ROOT/toolsをパスに追加 後でcygwinから参照できるように C のルートに展開した (C \android-sdk-windows\tools をパスに追加) 各 SDK や USB ドライバのインストールは、SDK Manager から行う http //developer.android.com/sdk/adding-components.html JDK のインストール http //java.sun.com/javase/downloads/index.jsp JDK 6 Update 3 を使用 これもインストール先を C \Java にして展開 Apatch Ant のインストール http //ant.apache.org/ Apatch Ant 1.7 を使用 これもルートに展開 環境変数を設定 PATH に C \apache-ant-1.7.0\bin を追加 ANT_HOME に C \apache-ant-1.7.0 を設定 JAVA_HOME に C \Java\jdk1.6.0_03 を設定 プロジェクトの作成 activityCreator を使ってプロジェクトを作成 プロジェクトを作りたいディレクトリに移動して、次のようにコマンドを実行 activityCreator --out [プロジェクト名] [パッケージ名.アクティビティ名] % activityCreator.bat --out HelloTako tako.test.HelloTako プロジェクト名のついたディレクトリが作成される ビルド プロジェクトのディレクトリで ant を実行 % cd HelloTako % ant bin の下にできた .apk ファイルが実行ファイル HelloTako.apk 実行(デバッグ) エミュレータを起動 (C \android_sdk_windows_m3-rc22a\tools\emulator.exe) % emulator エミュレータと通信するためのサーバを起動 % adb start-server adb を使って .apk をインストール エミュレータはホーム画面に戻しておくこと % adb install HelloTako.apk ホームの Applications にインストールされるので、そこへ移動して実行 リンク android情報まとめ@wiki
https://w.atwiki.jp/android/pages/136.html
ネット上に公開されているAndroidアプリケーションの索引 ※基本的にソース、あるいはapkファイルが公開されているもの。 ツール タスクマネージャ SDK version Task manager primitive prototype m3-rc37a以前 メディアプレイヤー Video/Music player sample (from local disk as well as remote URL’s) m3-rc37a以前 メール Send email via GMail (actually via SMTP) m3-rc37a以前 GoogleTalk Totally *Unofficial* Android GTalk Client (Send/Receive XMPP Messages) m3-rc37a以前 Android用Google Talkクライアントをm5-rc14に移植 m5-rc14 Mame Talk Ver.0.8 m5-rc14 Twitter Twitter Client for Android (How to make XML over HTTP calls) m3-rc37a以前 #ref error :ご指定のファイルが見つかりません。ファイル名を確認して、再度指定してください。 (TwitterClient3.png) AndroidでTwitterクライアント ver.3 m3-rc37a以前 地図関連 Androidで地図アプリケーションを作ってみた m3-rc37a以前 Androidの地図アプリをぐるなびに対応しました m3-rc37a以前 Androidの地図アプリをm5-rc14っぽくしてみた m5-rc14 ビューア ComicViewer3 -Androidで電子ブックリーダ m3-rc37a以前 Android用電子ブックリーダをm5-rc14に移植 m5-rc14 ゲーム テーブルゲーム AndroidとFlickrで神経衰弱 m3-rc37a以前 ブロック崩しをm5-rc14に移植 m5-rc14 その他 アンドロイド・アプリケーション こめんと なるべく集めて回るけど作ったひとが自発的に追加してくれるとありがたいなあ - kojira 2008-02-12 21 54 53 プラグイン追加とかが自分で出来ないから不便だなあ。そのうち移転するかも。 - kojira 2008-02-18 23 09 07 名前
https://w.atwiki.jp/android_api/pages/17.html
Androidアプリは「アクティビティ」、「ブロードキャストレシーバー」、「サービス」、「コンテンツプロバイダ」の4つの構成要素から成り立ちます。 リソースクラスです。標準的なアンドロイドアプリケーションに使用されます。このパッケージにはアンドロイドアプリケーションを使う際の定義がされています。サードパーティの開発者が使うことのできるたくさんのアップリケーションがあります。リソースの詳細についてはリソースとアセットをご覧ください。
https://w.atwiki.jp/android-reference/pages/21.html
android Contains the resource classes used by standard Android applications. Classes Manifest Manifest.permission Manifest.permission_group R R.anim R.array R.attr R.bool R.color R.dimen R.drawable R.id R.integer R.layout R.plurals R.raw R.string R.style R.styleable R.xml コメント 名前 コメント すべてのコメントを見る
https://w.atwiki.jp/melodroid/pages/16.html
Android開発環境構築 概略 Androidの標準的なビルド環境の構築について記載する。 基本的には、Android Open Source Projectの和訳になる。 目次 開発環境構築 ソース取得準備 ソース取得方法(repo) ソース取得方法(git) ビルド方法 開発環境構築 Ubuntu Linux(8.04,32bit-x86)上での開発環境構築について書く。 Windows上でやりたい場合は、VMware等を利用して実施。 Macとか他のLinuxディストリビューションについては、参照元をチェック。 アップデート実施「アップデート・マネージャ」を起動する(「システム」→「システム管理」→「アップデート・マネージャ」を選択) アップデートを実施する(「アップデートをインストールする」を押す) パスワードを要求されるので、入力してEnterキーを押す。 必要なパッケージを追加する。「端末」を起動する(「アプリケーション」→「アクセサリ」→「端末」を選択) 「端末」上で、下記のコマンドを入力して、Enterキーを押す。sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev パスワードを要求されるので、入力してEnterキーを押す。事前に、sudoを使った場合は、要求されない場合がある。 パッケージのダウンロードが始まるので、終わるまで待つ。 念のため、再度アップデートを実施 注意事項8.10だと別のパッケージ(lib32readline5-dev)が必要となるらしい 64-bitだと、少し違うらしい ソース取得準備 Android Open Source ProjectからAndroidのソース一式を取得する為のツール「repo」の導入方法を説明。 必要なパッケージ(Git)の取得上記の開発環境構築を実施していれば、再度取得する必要は無い「端末」を起動する(「アプリケーション」→「アクセサリ」→「端末」を選択) 「端末」上で、下記のコマンドを入力して、Enterキーを押す。sudo apt-get install git-core パスワードを要求されるので、入力してEnterキーを押す。事前に、sudoを使った場合は、要求されない場合がある。 パッケージのダウンロードが始まるので、終わるまで待つ。 (動作確認はしてないので・・)他に必要なパッケージがあれば、導入。 repoインストール用のフォルダ作成と設定説明同様に、ホーム配下(~/bin/)に作成する場合を記載(/usr/local/bin/等でも良いと思う)「端末」を起動する(「アプリケーション」→「アクセサリ」→「端末」を選択) ホーム配下に移動する「端末」上で、「cd ~」入力して、Enterキーを押す ホーム配下にbinフォルダを作成「端末」上で、「mkdir bin」入力して、Enterキーを押す コマンド入力時に、binフォルダが検索対象となっていることの確認binフォルダに移動する(端末で「cd bin」) 確認するパスを表示「端末」上で、「pwd」入力して、Enterキーを押す 環境変数を表示「端末」上で、「echo $PATH」入力して、Enterキーを押す 表示される文字列に確認するパス(pwdで表示されたパス)が含まれていることを確認区切り文字は、「 」(コロン) 含まれている場合、検索対称となっている 検索対象となっていない場合の対処方法別のやり方でもできる「.bashrc」を開く端末で「gedit ~/.bashrc」を入力して、Enterキーを押す エディタが開くので、最後に下記1行を追加PATH="$PATH ~/bin" 端末を一度終了させて、再度起動し、環境変数を確認 repoを取得端末で下記を入力して、Enterキーを押すcurl http //android.git.kernel.org/repo ~/bin/repo repoフォルダの設定端末で下記を入力して、Enterキーを押すchmod a+x ~/bin/repo 注意事項repoを導入しなくても、gitだけでソース取得することも可能 「.bashrc」の編集は自己責任で・・。 ソース取得方法(repo) repoを使ってのソースのダウンロード方法について記載。 repoが導入されていることを前提条件とする。 ダウンロード先のフォルダを作成以降、「~/mydroid」として作成したとする フォルダ内に移動端末で「cd ~/mydroid」を入力して、Enterキーを押す ダウンロード情報の初期設定端末で下記を入力して、Enterキーを押すrepo init -u git //android.git.kernel.org/platform/manifest.gitビルドする場合は、「-b cupcake」等を付加して、バージョン固定したほうが良いと思う 名前、メールアドレスの問合せがあるので、入力してEnterキーを押すEnterでデフォルトが入るので、とりあえず、それでも動く 設定ファイル内に格納される。アップロード時に使用される(?) ダウンロード実施端末で下記を入力して、Enterキーを押すrepo sync 注意事項repoのイメージとしては、「manifestに対応して、複数回のgitによるソース取得を実施する」(たぶん・・) 「repo init」、「repo sync」ともに、失敗することがある。その際は、再度実施。 repoのオプション等は、http //source.android.com/download/using-repoをチェック 「repo init」後に、manifestファイル(ローカルに作成されている)を変更することで、パッケージの追加、削除等の操作ができる ソース取得方法(git) gitを使ってのソースのダウンロード方法について記載。 gitが導入されていることを前提条件とする。 (とりあえず、ビルドしたいなら、素直に、repoを使った方が良い) ダウンロード先のフォルダを作成以降、「~/mydroid」として作成したとする フォルダ内に移動端末で「cd ~/mydroid」を入力して、Enterキーを押す サーバからダウンロード端末で下記(例:標準カーネル部分取得)を入力して、Enterキーを押すgit clone git //android.git.kernel.org/kernel/common.git 注意事項gitを1回実施するだけでは、1部分のみのソースを取得するイメージかな 複数回実施して、repo1回と同程度になる(makeするまでに手間がかかる) あるパッケージのソースだけ欲しい場合には、gitのほうが便利 動くソース一式が欲しい場合は、repoのほうがおすすめ ビルド方法 repoによりソースを取得した段階でのビルド方法を記載。 「~/mydroid」内で、「repo init」、「repo sync」を実施した状態だとする ソースのルートフォルダに移動端末で「cd ~/mydorid」を入力してEnterキーを押す ビルドを開始する端末で「make」を入力してEnterキーを押す 注意事項設定を何もしていない状態だと、ユーザ空間のビルドがgeneric設定で実施される。 上記の場合、生成物は「~/mydroid/out/target/product/generic」にできる カーネルビルドは含まれておらず、基本的にユーザランドが生成物となる
https://w.atwiki.jp/ohden/pages/319.html
Android関係の情報 参考になるサイト http //developer.android.com/ http //source.android.com/ http //android-developers.blogspot.jp/ https //sites.google.com/site/androyerjapan/ http //techbooster.org/category/android/ http //www.adakoda.com/android/ http //wikiwiki.jp/android/ ~アプリ作成~ ネタ ~環境構築~ ■ Android Studio Android Studio Beta ■ Android SDK 開発環境構築 【old】開発環境構築 for Win 【old】開発環境構築 for Linux repo ■ Titanium Studio http //preview.appcelerator.com/studio/ ■ PhoneGap ~Androidアプリ開発のtutorial的なものを書き綴っていくつもり~ Applicationの基本 Activityデザインの基本 エミュレータの使い方 Android/tutorial/ ~tips~ Androidのsource取得とbuild debugしたい時のつなぎ方 Android用makefileの書き方 Linuxアプリケーションの簡単な移植方法 Unicodeの使い方 セーフモードの入り方 apkファイルの解析方法 SDカードにコピーできない ~注意~ ndk-buildについて Android/tips/ ~Application~ busybox Androidのlibcとは Linux環境で多く使われてるC lib(GNU libc)とは互換性が無い。 Androidに使われているlibcは『Bionic libc』と言う。 Bionic libcとは Androidに使われているC lib。 Android用にカスタマイズされたlibのため、通常のC lib以外にAndroid専用の機能が追加されている。例えばシステムプロパティ取得機能、デバッグ時のlog出力機能。 Bionic libcは組込み向けに最適化されて提供されているので、GNU Libc(通常のLinux環境で使われているC lib)との互換性は無い。 つまり、LinuxのNativeCodeアプリケーションをAndroidへ移植する場合、使っている外部libを含めて、全てBionic libcでbuildし直す必要がある。 当然libraryも互換性が無いため、通常GNU Libcが見に行く『/usr/lib』『/usr/include』ではなく、Android NDKに用意された uClibc 組込み向けLinux向けのC library。標準的なlinuxで使われているglibcに比べて非常に小さくなっているが、機能もかなり削られている。 BionicとuClibcの関係が不明。 OABI Old Application Binary Interface Debianでは『arm』と記述されているらしい。EABIの方は『armel』と記述されるらしい。 浮動小数点演算にハードが持っている浮動小数点演算ユニットを用いる。当然ユニットが有ると高速に動作するが、無いとペナルティ(例外処理,コンテキストスイッチ)がものすごいらしい。 EABI Embedded Application Binary Interface Debianでは『armel』と記述されるらしい。OABIの方は『arm』と記述されるらしい。 浮動小数点演算については浮動小数点演算ユニットを持っていようがいまいが、ソフトウェアで解決する。 ※浮動小数点演算用の関数があるらしい。 そのため、コプロを用いた場合よりは遅くなるが、浮動小数点演算ユニットが無いチップでもそれなりの速度で浮動小数点演算を行える。 基本的にOABI互換。 Hardware ハードウェアメモ ZENITHINK e-PAD(ZT-180) REGZA Phone IS04 ALLDOCUBE iPlay7T ALLDOCUBE iPlay8T BMAX MaxPad I11 利用周波数帯 Type Frequency d a s r LTE b1 2.0 GHz ○ ○ ○ b3 1.7 GHz ○ ○ ○ ○ b8 900 MHz ○ b11 1.5 GHz ○ ○ b18 800 MHz ○ ○* b19 800 MHz ○ b21 1.5 GHz ○ b26 800 MHz ○ ○* b28 700 MHz ○ ○ b42 3.5 GHz ○ ○ ○ 5G n3 1.7 GHz ○ n28 700 MHz ○ ○ n77 3.7 GHz ○ ○ ○ n78 3.7 GHz ○ ○ n79 4.5 GHz ○ n257 28 GHz ○ ○ ○ ○ *auローミング Geekbench5 Device CPU COMPLETE https //browser.geekbench.com/v5/cpu/7254252 https //browser.geekbench.com/v5/cpu/7268088 https //browser.geekbench.com/v5/compute/2638247 https //browser.geekbench.com/v5/cpu/7268094 https //browser.geekbench.com/v5/compute/2638255 Device SoC Memory Single Multi BMAX i11 UNISOC T618(6x1.8GHz, 2x2.0GHz) 8GByte 369 1237 iPhone12 mini Apple A14 Bionic(6x3GHz) 4GByte 1583 3900 AQUOS sense6(SH-M19) Snapdragon 690 5G(6x1.7GHz, 2x2.0GHz) 6GByte 582 1682 AQUOS sense4 lite(SH-RM15) Snapdragon 720G(6x1.8GHz, 2x2.3GHz) 4GByte 549 1626 iPhoneSE(2016)1Gen Apple A9(2x1.8GHz) 2GByte 561 1047 iPhone5s Apple A7(2x1.3GHz) 1GByte 277 513 Amazon Fire HD 10(2019) KFMAWI MediaTek MT8183(2.0GHz) 2GByte 263 793 ALLDOCUBE T701 UNISOC SC9832E(4x1.4GHz) 2GByte 119 403 SHARP SHV34 Snapdragon 820 MSM8996(2x1.6GHz, 2x2.1GHz) 3GByte 238 626 Xperia XZ2 Compact(H8324) Snapdragon 845(4x1.8GHz, 4x2.8GHz) 4GByte 508 2256 Xperia Z4 Snapdragon 810 MSM8994(4x2.0GHz, 4x1.5GHz) 3GByte 518 2277 Asus MeMO Pad FHD10(ME302KL) Atom Z2560(2x1.6GHz) 2GByte 97 362 pickup対象が適当で、変な数値の取ってるかもしらん...今度見直す。 更新日: 2022年05月30日 (月) 15時37分44秒 http //www.embedded.jp/ 日本の組込情報 -- (s1n) 2011-03-02 14 42 18 『chcp 65001』 adbでの文字化け回避方法 -- (s1n) 2011-03-17 18 06 47 http //unity3d.com/japan/ unity game engine -- (s1n) 2012-03-28 15 22 29 titanium http //d.hatena.ne.jp/r_kurain/20110306/1299393778 -- (s1n) 2012-03-28 15 23 17 Android4.0:http //www.atmarkit.co.jp/fsmart/articles/android33/01.html Android4.1:http //www.atmarkit.co.jp/fsmart/articles/android26/01.html -- (s1n) 2012-11-20 18 18 24 http //www.atmarkit.co.jp/ait/articles/1209/19/news138.html Greeのソシャゲ-用フレームワーク -- (s1n) 2012-11-20 18 24 49 Android3.xからRenderScriptでLLVMの技術が使われてるらしい。 LLVM、AOT、JIT、辺りがキーワード? -- (s1n) 2012-12-12 13 58 29 http //blog.kmckk.com/archives/4036235.html -- (s1n) 2012-12-12 13 58 49 genymotion 軽いAndroidエミュレータ -- (s1n) 2014-03-07 19 31 49 https //snack.expo.io/ web上で完結する開発環境 -- (s1n) 2018-09-18 09 23 12 名前 コメント すべてのコメントを見る
https://w.atwiki.jp/anddoid/pages/32.html
android gravity 要素 top bottom left right center_vertical fill_vertical center fill clip_vertical clip_horizontal 関連タグ 使用例 android gravity="left" android gravity="top|center_horizontal"